home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / lang / lisp / stk-3.002 / stk-3 / STk-3.1 / Doc / Makefile < prev   
Encoding:
Makefile  |  1996-07-24  |  1.8 KB  |  69 lines

  1. #
  2. # Documentation Makefile
  3. # Copyright (C) 1993,1994,1995 Erick Gallesio - I3S-CNRS/ESSI <eg@unice.fr>
  4. # Permission to use, copy, and/or distribute this software and its
  5. # documentation for any purpose and without fee is hereby granted, provided
  6. # that both the above copyright notice and this permission notice appear in
  7. # all copies and derived works.  Fees for distribution or use of this
  8. # software or derived works may only be charged with express written
  9. # permission of the copyright holder.  
  10. # This software is provided ``as is'' without express or implied warranty.
  11. #
  12. #           Author: Erick Gallesio [eg@unice.fr]
  13. #    Creation date: 21-Oct-1994 11:25
  14. # Last file update: 24-Jul-1996 19:04
  15.  
  16. include ../config.make
  17.  
  18. # Don't use $(mandir) for manual. Always put it in $(prefix)/man/man1
  19. # This allows us to avoid the destruction of true Tk4.0 man pages
  20. # which are quite different.
  21. MAN1_DIR=$(mandir)/man1
  22. MANN_DIR=$(mandir)/mann
  23.  
  24.  
  25. DIRS=Extension Reference STklos+Tk Manual Isotas96
  26.  
  27. install: 
  28.  
  29. all:    dvi ps
  30.     
  31. dvi:
  32.     for i in $(DIRS) ;do \
  33.       (cd $$i; $(MAKE) dvi); \
  34.     done
  35.  
  36. ps:    
  37.     for i in $(DIRS) ;do \
  38.       (cd $$i; $(MAKE) ps); \
  39.     done
  40.         
  41. install.man:
  42.     -if [ ! -d $(mandir) ] ; then mkdir -p $(mandir); fi
  43.     rm -f $(stkdir)/man
  44.     (cd $(stkdir) ; ln -s $(VERSION)/man ./man)
  45.     -if [ ! -d $(MAN1_DIR) ] ; then mkdir -p $(MAN1_DIR); fi
  46.     rm -f $(MAN1_DIR)/*.n $(MAN1_DIR)/stk.1 $(MAN1_DIR)/snow.1
  47.     $(CP) Manual/STk-man.macros $(MAN1_DIR)
  48.     $(CP) Manual/stk.1 $(MAN1_DIR)/stk.1
  49.     ln $(MAN1_DIR)/stk.1 $(MAN1_DIR)/snow.1
  50.     chmod 444 $(MAN1_DIR)/*
  51.     -if [ ! -d $(MANN_DIR) ] ; then mkdir -p $(MANN_DIR); fi
  52.     $(CP) Manual/STk-man.macros $(MANN_DIR)
  53.     (cd Manual ;for  i in *.n ;do \
  54.               $(CP) $$i $(MANN_DIR)/stk_$$i; \
  55.             done)
  56.  
  57. clean:
  58.     for i in $(DIRS) ;do \
  59.       (cd $$i; $(MAKE) clean); \
  60.     done
  61.  
  62. very-clean:
  63.     for i in $(DIRS) ;do \
  64.       (cd $$i; $(MAKE) very-clean); \
  65.     done
  66.  
  67.